<html>
<head>
    <title>appDemo</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body >
<h1>app api 测试</h1>
<script>
    // Load native UI library
    var gui = require('nw.gui');
    var app = gui.App;
    var manifest = app.manifest;
    apendText(manifest.name);
    function apendText(text)
    {
        var element = document.createElement('div');
        element.appendChild(document.createTextNode(text));
        document.body.appendChild(element);
    }
</script>
</body>
</html>